{% extends "base.html" %}

{% block title %}
    新闻管理-编辑
{% endblock %}

{% block head %}
    <h1 class="page-header">新闻管理-编辑</h1>
{% endblock %}

{% block content %}
    <div class="col-lg-12">
        <div class="row">
                <div class="row">
                    <form method="post" enctype="multipart/form-data" action="">
                        <input type="hidden" name="csrf_token"
                               value="{{ csrf_token() }}">
                        <div class="form-group">
                            <label class="control-label">标题:</label>
                            <input class="form-control" type="text" name="title" placeholder="标题" value="{{ news.n_name }}">
                        </div>
                        <div class="form-group">
                            <label class="control-label">作者:</label>
                            <input class="form-control" type="text" name="author" placeholder="作者" value="{{ news.n_author }}">
                        </div>
                        <div class="form-group">
                            <label class="control-label">内容:</label>
                            <textarea class="form-control ckeditor" name="content">
                                {{ news.n_content }}

                            </textarea>
                        </div>
                        <div class="form-group">
                            <label class="control-label">图片:</label>
                            <input type="file" name="picture">
                            <div class="form-group">
                                <button class="btn btn-primary btn-block">提交</button>
                            </div>
                        </div>
                    </form>
            </div>
        </div>
        <!-- /.col-lg-12 -->
    </div>
<script src="/static/lib/ckeditor/ckeditor.js"></script>
{% endblock %}